package com.shenmazong.demorequestparam.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@Slf4j
@RestController
public class UserController {

    @GetMapping(value = "/getUser")
    public Object getUser() {
        Map map = new HashMap(8);
        map.put("userName", "武松");
        map.put("userAge", 32);
        map.put("userGender", "男");

        return map;
    }
}
